﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LifeSoftLibary
{
    public class ValidateUtils
    {
        public static String checkNum(String word)
        {
            String result = "";
            for (int i = 0; i < word.Length; i++)
            {
                if (word[i].ToString().Trim().Equals("0"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("1"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("2"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("3"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("4"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("5"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("6"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("7"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("8"))
                {
                    result += word[i].ToString();
                }
                if (word[i].ToString().Trim().Equals("9"))
                {
                    result += word[i].ToString();
                }
            }
            return result;
        }
    }
}
